package org.morningangel.android.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import org.morningangel.bean.Activity;

public class SearchActivityList implements Serializable {

	private static final long serialVersionUID = 8153496787519673044L;
	//搜索是否成功
	private String isSuccess;
	//搜索结果
	private List<SearchActivity> result;
	
	public SearchActivityList() {
		this.isSuccess = "0";
	}
	
	public SearchActivityList(List<Activity> list) {
		this.isSuccess = "1";
		result = new ArrayList<SearchActivity>();
		for (Activity a : list) {
			SearchActivity sa = new SearchActivity(a);
			result .add(sa);
		}
	}

	public String getIsSuccess() {
		return isSuccess;
	}

	public void setIsSuccess(String isSuccess) {
		this.isSuccess = isSuccess;
	}

	public List<SearchActivity> getResult() {
		return result;
	}

	public void setResult(List<SearchActivity> result) {
		this.result = result;
	}
	
	
}
